Piwik\Plugins\ScheduledReports\API C

Total Complexity 116
Dependencies 30
Dependents 8
Total lines 1,042
Lines of code 542
Logical lines of code 292
Comment lines 261
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
generateReport()
C
25
26 161
getReports()
B
39 16 65
sendReport()
A
40 8 61
validateEvolutionPeriod()
S
58 8 14
validateReportParameters()
S
56 6 17
validateRequestedReports()
S
57 5 16
validateIdSegment()
S
63 6 9
checkUserHasViewPermission()
S
61 4 12
validateReportHour()
S
71 4 5
getSegment()
S
65 4 9
getReportSubjectAndReportTitle()
S
62 3 12
addReport()
S
51 2 27
updateReport()
S
51 2 26
ensureLanguageSetForUser()
S
63 2 11
validateReportFormat()
S
63 2 11
validateReportType()
S
66 2 8
checkSinglePeriod()
S
72 2 5
validateReportPeriod()
S
68 2 6
validateCommonReportAttributes()
S
65 1 9
validateAndTruncateDescription()
S
78 1 3
getReportMetadata()
S
67 1 8
allowMultipleReports()
S
67 1 8
getReportTypes()
S
72 1 5
getReportFormats()
S
68 1 8
getReportRecipients()
S
72 1 5
getModel()
S
81 1 3
isSegmentEditorActivated()
S
78 1 3
getAttachments()
S
79 1 3
deleteReport()
S
65 1 9
__construct()
S
81 1 3